<div class="pages fn-clear">
	<div id="page-form" class="page-form" >
		{if $total}
		<div class="fn-left fn-clear">
			{php $pn->render()}
		</div>
		<span>共{php echo $pn->getPages()}页&nbsp;{if $pn->getPages()>1}到第</span>	<input type="text" name="page-num-input" id="xd_page_jump"/><span>页</span><button type="button">确定</button>
		{/if}
		{/if}
	</div>
	<script type="text/javascript">
		seajs.use(['$','lm-util'],function($,util){
			$(".page-form").find("button").click(function(){
				var pageNum = $('#xd_page_jump').val();
                if(isNaN(pageNum) || $.trim(pageNum)=='' ){
                    $('#xd_page_jump').select();
                    return;
                }
				util.xdChangeAndLocation('page', pageNum);
			});
		});
	</script>
</div>